import Vue from 'vue'
import App from './App.vue'
import Axios from 'axios'
import ElementUI from 'element-ui'
Vue.use(ElementUI)

Axios.defaults.baseURL = "http://127.0.0.1:8000"
Axios.defaults.withCredentials = true
Axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
Axios.defaults.headers['token'] = localStorage.getItem("token") || ''
Axios.defaults.headers.post['Content-Type'] = 'application/json'


Vue.config.productionTip = false
Vue.prototype.$axios = Axios


new Vue({
  render: h => h(App),
}).$mount('#app')
